<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>

	<style>
.ui-widget,.ui-widget .ui-widget {
	font-size: 11px !important;
}
</style>

	<title>Cadastro de Contas a Receber</title>
	<link rel="stylesheet" type="text/css" href="css/estilos.css" />
</h:head>
<body>
	<h:form id="form">

		<p:panel id="mContaReceberPanel" style="border: none;">
			<h2>Cadastro de Contas a Receber</h2>
			<h:panelGrid columns="1" cellpadding="2" style="border: 2px;">
				<h:outputText value="Código da Conta" />
				<p:inputText id="mContaReceberId" value="" maxlength="4"
					readonly="true" size="7" disabled="true" />
			</h:panelGrid>

			<h:panelGrid columns="3" cellpadding="2">
				<h:outputText value="Codigo" />
				<h:outputText value="Cliente *" />
				<h:outputText value="" />

				<p:inputText id="mContaReceberIdCliente" value="" maxlength="40"
					size="5" />
				<p:inputText id="mContaReceberCliente" value="" maxlength="40"
					size="50" disabled="true" />
				<p:commandButton id="mContaReceberSelectCliente"
					icon="ui-icon-search" title="Selecionar Cliente"
					onclick="dConsultaCliente.show() " />
			</h:panelGrid>
			<br></br>

			<h:panelGrid columns="5" cellpadding="2">


				<h:outputText value="Forma de Pagamento: *" />

				<h:outputText value="Condicoes de Pg: *" />

				<h:outputText value=" " />

				<h:outputText value="Parcelas:" />

				<h:outputText value=" " />

				<p:selectOneMenu id="mContaReceberForma" style="width:200px"
					styleClass="w300">
					<f:selectItem itemLabel="Selecione" />
				</p:selectOneMenu>

				<p:inputText id="mContaReceberCondicao" disabled="true" />

				<p:commandButton id="mContaReceberSelectCondicao"
					icon="ui-icon-search" title="Selecionar Condição de Pagamento"
					onclick="dConsultaCondPagamento.show() " />

				<p:inputMask id="mContaReceberParcelas" value="" maxlength="14"
					mask="999,99" size="7" disabled="true" />

				<p:commandButton icon="ui-icon-disk" title="Criar" />

			</h:panelGrid>
			<br></br>

			<p:dataTable>
				<p:column headerText="ID">
					<h:outputText value="001" />
				</p:column>

				<p:column headerText="Data">

				</p:column>

				<p:column headerText="Forma de Pagamento">

				</p:column>

				<p:column headerText="Valor">
					<h:outputText value="001" />
				</p:column>

				<p:column headerText="Vencimento">
					<h:outputText value="001" />
				</p:column>

				<p:column headerText="Multa">

				</p:column>

				<p:column headerText="Ação">

				</p:column>
			</p:dataTable>
			<br></br>
			<br></br>
			<p:separator />

			<h:panelGrid columns="3" style="float: right;">
				<p:commandButton id="mContaReceberSalvar" value="Salvar"
					action="#{beanCliente.save}" />
				<p:commandButton id="mContaReceberLimpar" value="Limpar"
					action="#{beanCliente.reinit}" update="@form" />
				<p:commandButton id="mContaReceberVoltar" value="Voltar"
					onclick="history.back()" />
			</h:panelGrid>


			<h:panelGrid columns="4" cellpadding="2" style="float: left;">
				<h:outputText value="Cadastro" />
				<p:inputMask id="mContaReceberDataCad"
					value="#{beanCliente.cliente.criacao}" mask="99/99/9999" size="7"
					disabled="true" />


				<h:outputText value="Ultima Alter. " />

				<p:inputMask id="mContaReceberDataAlteracao"
					value="#{beanCliente.cliente.alteracao}" mask="99/99/9999" size="7"
					disabled="true" />
			</h:panelGrid>
		</p:panel>



		<p:dialog header="Consultar Cliente" widgetVar="dConsultaCliente"
			id="mContaReceberConsCliente" resizable="false">
			<ui:include src="/cliente/pConsultaCliente.xhtml"></ui:include>
		</p:dialog>

		<p:dialog header="Consultar Condição de Pagamento"
			widgetVar="dConsultaCondPagamento" id="mContaReceberConsultaCondicao"
			resizable="false">
			<ui:include src="/condPagamento/pConsultaCondPagamento.xhtml"></ui:include>
		</p:dialog>

	</h:form>
</body>
</html>